﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<FrasesSimpsonsMvc.Models.Capitulos>" %>
<%@ Import Namespace="FrasesSimpsonsMvc.Views" %>

<asp:Content ID="Head" ContentPlaceHolderID="HeadContent" runat="server">
	<% Html.RenderPartial("BasicHeadUserControl"); %>
</asp:Content>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server"><%= Html.Encode(Model.Nombre) %> - Capitulo <%= Model.Numero %> - Temporada <%= Model.Temporadas.Numero %></asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="server">
	<% Html.RenderPartial("SearchCleanUserControl"); %>

	<div class="row-responsive hidden-phone">
		<ul class="breadcrumb">
			<li>
				<a href="<%= Url.Action("Index", "Home") %>">Home</a> <span class="divider">/</span>
			</li>
			<li>
				<a href="<%= Url.Action("Index", "Temporada") %>">Temporadas</a> <span class="divider">/</span>
			</li>
			<li>
				<span class="label label-success tall"><a class="label-link" href="<%= Url.Action("Detail", "Temporada", new { Id = Model.Temporadas.Id}) %>">Temporada <%= Model.Temporadas.Numero %></a></span> <span class="divider">/</span>
			</li>
			<li class="active"><span class="label label-inverse tall">Capitulo <%= Model.Numero %></span>&nbsp;<span class="label label-mini label-inverse tall">Capitulo <%= Model.Nombre %></span></li>
		</ul>
	</div>

	<div class="row-responsive well">
		<h2><%= Model.Nombre %></h2>
		<p class="top-space">
			<a class="btn" target="_blank" href="<%= Model.WikipediaIngles %>"><i class="icon-globe"></i> Wikipedia en Ingles</a>
			<a class="btn" target="_blank" href="<%= Model.WikipediaCastellano %>"><i class="icon-globe"></i> Wikipedia en Castellano</a>
			<a class="btn" target="_blank" href="<%= Model.SimpsonsArchive %>"><i class="icon-time"></i> Simpsons Archive</a>
		</p>
	</div>

	<div class="row-fluid">
		<% Html.RenderPartial("ListaFrasesUserControl", Model.Frases); %>
		<% if (Model.Frases.Count == 0) { %>
		<h3>No hay frases de este capítulo</h3>
		<a href="<%= Url.Action("Add", "Frase") %>" class="hidden-phone btn"><i class="icon-plus"></i> Agregá una frase</a>
		<% } %>
	</div>

	<div class="row-responsive">
		<fb:comments href="<%= FrasesSimpsonsMvc.Models.Settings.SitePublicUrl %><%= Url.Action("Detail", "Capitulo", new { Id = Model.Id }) %>" numposts="10" width="425" publish_feed="false"></fb:comments>
	</div>

</asp:Content>


